//
//  SXNewsModel.m
//  81 - 网易新闻
//
//  Created by 董 尚先 on 15-1-22.
//  Copyright (c) 2015年 ShangxianDante. All rights reserved.
//

#import "SXNewsModel.h"

@implementation SXNewsModel

+ (instancetype)newsModelWithDict:(NSDictionary *)dict
{    
    SXNewsModel *model = [[self alloc]init];
    
    model.title = [dict objectForKey:@"title"];
    model.imgsrc = [dict objectForKey:@"thumbnail"];
    model.comments = [NSString stringWithFormat:@"%@",[dict objectForKey:@"views"]];
    model.commentsall = [NSString stringWithFormat:@"%d",[[dict objectForKey:@"commentsall"] intValue]];
    model.updateTime = [dict objectForKey:@"updateTime"];
    model.docurl = [dict objectForKey:@"url"];
    model.docid = [dict objectForKey:@"id"];
    model.skipType = [dict objectForKey:@"type"];
    model.imgextra = [dict objectForKey:@"images"];
//  [model setValuesForKeysWithDictionary:dict];
    
    return model;
}



-(void)setValue:(id)value forUndefinedKey:(NSString*)key{

   
}


@end
